Changed everything to working javascript