Registration page styling and js cleanup

Added javascript for card flipping to a common js file and referenced it
from all of the places that were using the code.