added record.js, fixed indenting, added js reference in record.php