Extract line numbers from JavaScript