Moves javascript function into external file
Adds test unit for database
Uses bootstrap