formatted javascript