changed js structure to init #content