Fixed the broken JavaScript Code