externalized database configuration in star-config.properties

also fixed java script errors