Fixed JS Error in Previous Commit, Code Functions Now