Removed duplicate js loading, set up init js function and tested