mysql dependency
JS tidy and comments