placed js back in head due to incompatability with framework