cleaned up all javascript specs for better readability