added fancy javascript