Added application JavaScript to type dropdown

Fixes #646