Fixed register theme script

Correctly registered script before enqueuing.