Js for web apps edits

If you keep writing these I'll keep editing them :)