Javascript, CSS and SQL