moved javascript code to aquacc.js