The code written in AppStart is NEVER compiled into a BANano project source code (as per BANano posts) it is just there to set up the project for BANano and other things. I made this mistake too so many times.

. Create a module / class and test again as that will be compiled into the javascript project needed. I'm sure with that correction things will be fine..
Good luck!