Added powerups and reworked js code