Update 2

Uses JS in external File to improve readability