moving create_marker function to external js
Removing database copy