added debug builds

also ran js format on a lot of files