updated formatting to use JavaScript